<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>

<html>
<head>
<s:head />
<title>Home</title>
</head>
<body>

Bares:<br/>
<table border="1" cellspacing="10" cellpadding="10">
	<tr>
		<td colspan="2">
		<form action="editBar" method="POST" >
		<input type="submit" value="New"/>
		</form>
		</td>		
	</tr>
	<tr>
		<td><b>Id</b></td>
		<td><b>Bar Name</b></td>
	</tr>
	<s:iterator value="bars" status="bar">
		<tr>
			<td>
			<s:url id="barDetail" action="barDetail">
						<s:param name="id" value="id" />						
			</s:url>			
			<s:a href="%{barDetail}"><s:property value="id" /></s:a>
			</td>
			<td><s:property value="name" /></td>
		</tr>
	</s:iterator>
</table>
</div>
</body>
</html>
